package com.training.java.core.homework05;

public class Transaction {

	private Person person;

	public Transaction(Person person) {
		this.person = person;
	}
	
	void doTransaction(double amount) {
		System.out.println("Transaction is processing now .....");
		person.activity();
		person.debit(amount);
		person.credit(amount);
	}
}
